#ifndef ADDCONTROL_H
#define ADDCONTROL_H

#include <QWidget>
#include <QPushButton>
#include <QGridLayout>

#include "imagewidget.h"

class AddControl : public QWidget
{
    friend class        MyWindow;

    Q_OBJECT
public:
    AddControl(QWidget *parent = 0);

    void publicAddthread();

public slots:
    void                BtnClicked();

private:
    QPushButton*        btn;
    QList<ImageWidget*> imgWidgets;
    QGridLayout*        mainGridLayout;
    int                 CX;
    int                 CY;
    int                 imageWidgetWidth;
    int                 imageWidgetHeight;
    int                 maxColumn;
};

#endif
